/*
 * SN76489.cpp
 *
 *  Created on: Jan 1, 2012
 *      Author: douglas
 */
/*
#include <playlib/defines.hpp>

#include "SN76489.hpp"





void SN76489::write(SN76489_instruction data)
{
	if (data.datatype == 0) // Data Byte
	{
		if (isToneRegLatched)
		{
			((reg10_t) regs.latch).high6bits = data.high6bits;
		}
		else
		{
			((reg4_t) regs.latch).low4bits = data.low4bits;
		}
	}
	else // Latch Byte
	{
		if (data.regtype)
		{
			regs.latch = &regs.rvn[data.channel];
			regs.rvn[data.channel] = data.low4bits;
			isToneRegLatched = false;
		}
		else
		{
			regs.latch = &regs.rt[data.channel];
			regs.rt[data.channel] = data.low4bits;
			isToneRegLatched = true;
		}
	}
}*/
